package app.netant.bt.btcats;

import org.jsoup.select.Elements;

import app.netant.bt.MargnetDetail;
import app.netant.bt.MargnetPage;

public class BtCatPage extends MargnetPage {

	public BtCatPage(String netSite) {
		super(netSite);
	}

	@Override
	public void analyse() {
		
		Elements activePart = document.select("#wrapper #content #wall .search-item.detail-width");
		for(int i=0;i<activePart.size();i++){
			
			String href = "https://btcat.org" + activePart.get(i).select(".item-title a").attr("href");
			
			System.out.println(href+"开始处理");
				
			this.analyseHref(href);

		}
		
	}

	@Override
	public MargnetDetail buildDetail(String url) {
		MargnetDetail detail = new BtCatDetail(url);
		return detail;
	}

}
